package com.lyh.stock.dao;

import com.lyh.domain.bean.StockInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * @author liuyuhong
 */
@Mapper
public interface StockInfoMapper {

    StockInfo queryStockInfoById(@Param("id") Long id);

    void subStockByGoodsId(@Param("goodsId") Long goodsId, @Param("count") BigDecimal count);
}
